function userlogin() {
		var url = "/OA/user/user_login.do";
		var username = $("#username").val();
		var password = $("#password").val();
		$.ajax({
			url : url,
			dataType : 'html',
			data : ({'username':username,
				'password':password
			}),
			success : function(data) {
				if(data==0){
					location.href = "/OA/pagejump/index"
				}else{
					$("#loginReturn").html("<font color='red'>用户名或者密码错误</font>")
				}
				
			}
		})
	}

function elseCountAdd() {
	var url = "/OA/countController/elseCount.do";
	var elseCount = $("#elseCount").val();
	var costExplain = $("#costExplain").val();
	var costTime = $("#costTime").val();
	$.ajax({
		url : url,
		dataType : 'html',
		data : ({'elseCount':elseCount,
			'costExplain':costExplain,
			'costTime':costTime
		}),
		success : function(data) {
			$("#XMB2").html(data);
		}
	})
}

